import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);

Vue.config.productionTip = false
Vue.prototype.dateFormate = function(str1,str2){
    let  date = new  Date(str1);
  
    let year = date.getFullYear();
    let  month = date.getMonth()+1;
    let  day = date.getDate();
    let  hour = date.getHours();
    let min = date.getMinutes();
    let sec = date.getSeconds();
  
    return  str2.replace("yyyy",year).replace("mm",month).replace("dd",day).replace("hh",hour).replace("mm",min).replace("ss",sec);
  
  
  }
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')